\hypertarget{class_s_w2_a311___lib_1_1_encapsulation_class}{\section{S\-W2\-A311\-\_\-\-Lib.\-Encapsulation\-Class Class Reference}
\label{class_s_w2_a311___lib_1_1_encapsulation_class}\index{S\-W2\-A311\-\_\-\-Lib.\-Encapsulation\-Class@{S\-W2\-A311\-\_\-\-Lib.\-Encapsulation\-Class}}
}


\hyperlink{class_s_w2_a311___lib_1_1_encapsulation_class}{Encapsulation\-Class} bruges til at indkapsle de objekter vi sender over netværket så vi nemt kan deserialize dem igen og ud fra Type\-Code vide hvordan vi skal videre behandle objektet hos modtageren.  


Inheritance diagram for S\-W2\-A311\-\_\-\-Lib.\-Encapsulation\-Class\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_s_w2_a311___lib_1_1_encapsulation_class}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_s_w2_a311___lib_1_1_encapsulation_class_a400de9c64dd2ae5e8b5fafe4f3202b12}{Encapsulation\-Class} (object object\-In)
\begin{DoxyCompactList}\small\item\em Constructoren tager det object der skal indkapsles som input og gemmer det i Sent\-Object field. \end{DoxyCompactList}\item 
\hyperlink{class_s_w2_a311___lib_1_1_encapsulation_class_ad1de16e4f6362f1387906ea269777033}{Encapsulation\-Class} (Serialization\-Info info, Streaming\-Context ctxt)
\begin{DoxyCompactList}\small\item\em Construktor til når objektet serialiseres. Sørger for både Sent\-Object og Type\-Code bliver serializeret. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_s_w2_a311___lib_1_1_encapsulation_class_a91d7e43c8625bfb1a30cc86fbf77ce1d}{Get\-Object\-Data} (Serialization\-Info info, Streaming\-Context ctxt)
\begin{DoxyCompactList}\small\item\em Metode til deserializering. \end{DoxyCompactList}\item 
void \hyperlink{class_s_w2_a311___lib_1_1_encapsulation_class_a681343928c67521c056568332690c424}{Set\-As\-Create\-User} ()
\begin{DoxyCompactList}\small\item\em Skifter Type\-Code for et \hyperlink{class_s_w2_a311___lib_1_1_user}{User} object fra Log\-In\-User til Create\-User. \end{DoxyCompactList}\item 
void \hyperlink{class_s_w2_a311___lib_1_1_encapsulation_class_add828aba2ab1d1a9016cc459ae3f1bc3}{Get\-Object\-Type} (object object\-In)
\begin{DoxyCompactList}\small\item\em Finder en Type\-Code ud fra objektets .Get\-Type og gemmer det i Type\-Code field. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Properties}
\begin{DoxyCompactItemize}
\item 
byte\mbox{[}$\,$\mbox{]} \hyperlink{class_s_w2_a311___lib_1_1_encapsulation_class_a1c7dda9c812daf824382f802e6c14c4b}{Sent\-Object}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\item 
\hyperlink{namespace_s_w2_a311___lib_abf922c6a2e5c0362bdf678f8102a3fa5}{Object\-Type} \hyperlink{class_s_w2_a311___lib_1_1_encapsulation_class_a5bf4b3f50c67aa2a0450d2cfa6acc27b}{Type\-Code}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{class_s_w2_a311___lib_1_1_encapsulation_class}{Encapsulation\-Class} bruges til at indkapsle de objekter vi sender over netværket så vi nemt kan deserialize dem igen og ud fra Type\-Code vide hvordan vi skal videre behandle objektet hos modtageren. 



Definition at line 127 of file Serialization.\-cs.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_s_w2_a311___lib_1_1_encapsulation_class_a400de9c64dd2ae5e8b5fafe4f3202b12}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class@{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class}!Encapsulation\-Class@{Encapsulation\-Class}}
\index{Encapsulation\-Class@{Encapsulation\-Class}!SW2A311_Lib::EncapsulationClass@{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class}}
\subsubsection[{Encapsulation\-Class}]{\setlength{\rightskip}{0pt plus 5cm}S\-W2\-A311\-\_\-\-Lib.\-Encapsulation\-Class.\-Encapsulation\-Class (
\begin{DoxyParamCaption}
\item[{object}]{object\-In}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_encapsulation_class_a400de9c64dd2ae5e8b5fafe4f3202b12}


Constructoren tager det object der skal indkapsles som input og gemmer det i Sent\-Object field. 

Kalder Get\-Object\-Type metoden så Type\-Code også får en værdi. 


\begin{DoxyParams}{Parameters}
{\em object\-In} & \\
\hline
\end{DoxyParams}


Definition at line 138 of file Serialization.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_encapsulation_class_ad1de16e4f6362f1387906ea269777033}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class@{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class}!Encapsulation\-Class@{Encapsulation\-Class}}
\index{Encapsulation\-Class@{Encapsulation\-Class}!SW2A311_Lib::EncapsulationClass@{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class}}
\subsubsection[{Encapsulation\-Class}]{\setlength{\rightskip}{0pt plus 5cm}S\-W2\-A311\-\_\-\-Lib.\-Encapsulation\-Class.\-Encapsulation\-Class (
\begin{DoxyParamCaption}
\item[{Serialization\-Info}]{info, }
\item[{Streaming\-Context}]{ctxt}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_encapsulation_class_ad1de16e4f6362f1387906ea269777033}


Construktor til når objektet serialiseres. Sørger for både Sent\-Object og Type\-Code bliver serializeret. 


\begin{DoxyParams}{Parameters}
{\em info} & \\
\hline
{\em ctxt} & \\
\hline
\end{DoxyParams}


Definition at line 149 of file Serialization.\-cs.



\subsection{Member Function Documentation}
\hypertarget{class_s_w2_a311___lib_1_1_encapsulation_class_a91d7e43c8625bfb1a30cc86fbf77ce1d}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class@{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class}!Get\-Object\-Data@{Get\-Object\-Data}}
\index{Get\-Object\-Data@{Get\-Object\-Data}!SW2A311_Lib::EncapsulationClass@{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class}}
\subsubsection[{Get\-Object\-Data}]{\setlength{\rightskip}{0pt plus 5cm}virtual void S\-W2\-A311\-\_\-\-Lib.\-Encapsulation\-Class.\-Get\-Object\-Data (
\begin{DoxyParamCaption}
\item[{Serialization\-Info}]{info, }
\item[{Streaming\-Context}]{ctxt}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_s_w2_a311___lib_1_1_encapsulation_class_a91d7e43c8625bfb1a30cc86fbf77ce1d}


Metode til deserializering. 


\begin{DoxyParams}{Parameters}
{\em info} & \\
\hline
{\em ctxt} & \\
\hline
\end{DoxyParams}


Definition at line 159 of file Serialization.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_encapsulation_class_add828aba2ab1d1a9016cc459ae3f1bc3}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class@{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class}!Get\-Object\-Type@{Get\-Object\-Type}}
\index{Get\-Object\-Type@{Get\-Object\-Type}!SW2A311_Lib::EncapsulationClass@{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class}}
\subsubsection[{Get\-Object\-Type}]{\setlength{\rightskip}{0pt plus 5cm}void S\-W2\-A311\-\_\-\-Lib.\-Encapsulation\-Class.\-Get\-Object\-Type (
\begin{DoxyParamCaption}
\item[{object}]{object\-In}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_encapsulation_class_add828aba2ab1d1a9016cc459ae3f1bc3}


Finder en Type\-Code ud fra objektets .Get\-Type og gemmer det i Type\-Code field. 


\begin{DoxyParams}{Parameters}
{\em object\-In} & \\
\hline
\end{DoxyParams}


Definition at line 180 of file Serialization.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_encapsulation_class_a681343928c67521c056568332690c424}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class@{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class}!Set\-As\-Create\-User@{Set\-As\-Create\-User}}
\index{Set\-As\-Create\-User@{Set\-As\-Create\-User}!SW2A311_Lib::EncapsulationClass@{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class}}
\subsubsection[{Set\-As\-Create\-User}]{\setlength{\rightskip}{0pt plus 5cm}void S\-W2\-A311\-\_\-\-Lib.\-Encapsulation\-Class.\-Set\-As\-Create\-User (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_encapsulation_class_a681343928c67521c056568332690c424}


Skifter Type\-Code for et \hyperlink{class_s_w2_a311___lib_1_1_user}{User} object fra Log\-In\-User til Create\-User. 



Definition at line 167 of file Serialization.\-cs.



\subsection{Property Documentation}
\hypertarget{class_s_w2_a311___lib_1_1_encapsulation_class_a1c7dda9c812daf824382f802e6c14c4b}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class@{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class}!Sent\-Object@{Sent\-Object}}
\index{Sent\-Object@{Sent\-Object}!SW2A311_Lib::EncapsulationClass@{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class}}
\subsubsection[{Sent\-Object}]{\setlength{\rightskip}{0pt plus 5cm}byte \mbox{[}$\,$\mbox{]} S\-W2\-A311\-\_\-\-Lib.\-Encapsulation\-Class.\-Sent\-Object\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}}\label{class_s_w2_a311___lib_1_1_encapsulation_class_a1c7dda9c812daf824382f802e6c14c4b}


Definition at line 129 of file Serialization.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_encapsulation_class_a5bf4b3f50c67aa2a0450d2cfa6acc27b}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class@{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class}!Type\-Code@{Type\-Code}}
\index{Type\-Code@{Type\-Code}!SW2A311_Lib::EncapsulationClass@{S\-W2\-A311\-\_\-\-Lib\-::\-Encapsulation\-Class}}
\subsubsection[{Type\-Code}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Object\-Type} S\-W2\-A311\-\_\-\-Lib.\-Encapsulation\-Class.\-Type\-Code\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}}\label{class_s_w2_a311___lib_1_1_encapsulation_class_a5bf4b3f50c67aa2a0450d2cfa6acc27b}


Definition at line 130 of file Serialization.\-cs.



The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
S\-W2\-A311\-\_\-\-Lib/\hyperlink{_serialization_8cs}{Serialization.\-cs}\end{DoxyCompactItemize}
